package com.xzit.xzitexprement2.Service.Impl;

import com.xzit.xzitexprement2.Mapper.studentsMapper;
import com.xzit.xzitexprement2.Pojo.students;
import com.xzit.xzitexprement2.Service.studentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class studentsServiceImpl implements studentsService {
    @Autowired
    private studentsMapper studentsmapper;
    @Override
    public List<students> listAll() {
        return studentsmapper.listAll();
    }

    @Override
    public List<students> getById(String studentId) {
        return studentsmapper.getById(studentId);
    }

    @Override
    public void add(students Students) {
        studentsmapper.add(Students);
    }
}
